import {Button, Result} from "antd";
import React from "react";
import "./index.scss";
import {useHistory} from "react-router-dom";

const Page404 = () => {

  const history = useHistory()

  return (
    <div className="container">
      <Result
        status="404"
        title="404"
        subTitle="访问的页面不存在"
        extra={
          <Button type="primary" onClick={() => history.go(-1)}>
            上一页
          </Button>
        }
      />
    </div>
  );
};

export default Page404;
